/**
 * @author Kristian Mandrup
 */
jsUnitSetOnLoad(window, function(){
    runPageTests("../lib/jsunit");
});

function runPageTests(test_runner_url){
    if (window.location.href.indexOf("cacheBuster") < 0) {
		var page = "" + window.location.href;
		if (page.match('file:///')) {
			page = page.substring('file:///'.length);
			console.log('page:' + page)
		}
        test_runner_url += "/testRunner.html?autorun=true&testPage=" + page
        window.location.href = test_runner_url;
    }
}
